<script setup lang="ts">
import SonC from "@/components/shangguigu/son.vue";
const money = ref(10000);
let son = ref();
const handler = ()=>{
  money.value += 10;
  son.value.son_m -= 10;
}
</script>

<template>
<main>
  <div>father{{money}}</div>
  <SonC ref="son"/>
  <button type="button" @click="handler">father click</button>
</main>
</template>

<style lang="scss" scoped>
main{
  @apply p-10;
}
</style>